package com.anhry.app.safety.manage.oa.service;

import java.util.List;

import com.anhry.app.safety.manage.oa.bean.TbOaCallMsg;
import com.anhry.app.safety.manage.oa.bean.TbOaCallMsgView;
import com.anhry.app.safety.manage.oa.bean.TbOaPersonCall;
import com.anhry.app.safety.manage.system.bean.TbUser;
import com.anhry.app.safety.util.dao.UtilDao;

public interface CallService {

	public abstract UtilDao getUtilDao();

	public abstract List<TbOaPersonCall> loadPerCallList(String keyWord,
			String beginTime, String endTime, TbUser user, String forward,
			String isSend, final int startRow, final int size) throws Exception;

	public abstract List<TbOaCallMsgView> loadCallMsgList(String keyWord,
			String beginTime, String endTime, TbUser user, String isRead,
			final int startRow, final int size) throws Exception;

	public abstract List<TbOaPersonCall> loadPerCallList() throws Exception;

	public abstract List<TbOaPersonCall> loadPerCallList(String keyWord,
			String callTypes, String beginTime, String endTime, String keyUser,
			String userUnit, String userDept, String isSends,
			final int startRow, final int size) throws Exception;

	// 汇总列表 查询条件修改后 重载
	public List<TbOaPersonCall> loadPerCallList(String keyWord,
			String callTypes, String beginTime, String endTime, String keyUser,
			String wherehql, String isSends, final int startRow, final int size)
			throws Exception;

	public abstract String loadDeptCallNums(String deptType, TbUser user,
			String dateType) throws Exception;

	public abstract List<TbOaCallMsg> loadCallReadList(Long id,
			String readType, final int startRow, final int size)
			throws Exception;

	public abstract String deptCallInNums(String deptType, TbUser user,
			String dateType, String callType, String msgType, String way)
			throws Exception;

	public abstract String deptCallSetNums(String deptType, TbUser user,
			String dateType, String callType) throws Exception;

	public abstract void SendCall() throws Exception;

	/**
	 * 查询未读 提醒
	 */

	public int getNotReadCallSize(TbUser user) throws Exception;

}